// JavaScript Document
define(function (require, exports, module) {
	var ChineseAmountGroup=function(sourceSelector,bindSelector){
		this.sourceSelector=sourceSelector;
		this.bindSelector=bindSelector
		this.init();
	}
	ChineseAmountGroup.prototype.init=function(){
		var value,html,self;
		self=this;
		
		var value=$(self.sourceSelector).val();
		html=ht.ChineseAmount.valueOf(value);
		$(self.bindSelector).html(html);
		//console.log(html)
		$(this.sourceSelector).bind("change",function(event){
			value=event.currentTarget.value;
			html=ht.ChineseAmount.valueOf(value);
			$(self.bindSelector).html(html);
		})
		$(this.sourceSelector).change();
	}
	module.exports = ChineseAmountGroup;
});